passwordentry: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 16:03:03 +0000 (11:03 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:33 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations

gtk/gtkpasswordentry.c

index b1b60425338454556e17afff68fa3d9d3dbecdf2..f267325cba91ae9150bc7beb516d8476a51e79d7 100644 (file)
@@ -458,7 +458,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkPasswordEntry:show-peek-icon:
+   * GtkPasswordEntry:show-peek-icon: (attributes org.gtk.Property.get=gtk_password_entry_get_show_peek_icon org.gtk.Property.set=gtk_password_entry_set_show_peek_icon)
    *
    * Whether to show an icon for revealing the content.
    */
@@ -470,7 +470,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkPasswordEntry:extra-menu:
+   * GtkPasswordEntry:extra-menu: (attributes org.gtk.Property.get=gtk_password_entry_get_extra_menu org.gtk.Property.set=gtk_password_entry_set_extra_menu)
    *
    * A menu model whose contents will be appended to
    * the context menu.
@@ -575,7 +575,7 @@ gtk_password_entry_new (void)
 }
 
 /**
- * gtk_password_entry_set_show_peek_icon:
+ * gtk_password_entry_set_show_peek_icon: (attributes org.gtk.Method.set_property=show-peek-icon)
  * @entry: a `GtkPasswordEntry`
  * @show_peek_icon: whether to show the peek icon
  *
@@ -628,7 +628,7 @@ gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry,
 }
 
 /**
- * gtk_password_entry_get_show_peek_icon:
+ * gtk_password_entry_get_show_peek_icon: (attributes org.gtk.Method.get_property=show-peek-icon)
  * @entry: a `GtkPasswordEntry`
  *
  * Returns whether the entry is showing an icon to
@@ -645,7 +645,7 @@ gtk_password_entry_get_show_peek_icon (GtkPasswordEntry *entry)
 }
 
 /**
- * gtk_password_entry_set_extra_menu:
+ * gtk_password_entry_set_extra_menu: (attributes org.gtk.Method.set_property=extra-menu)
  * @entry: a `GtkPasswordEntry`
  * @model: (allow-none): a `GMenuModel`
  *
@@ -691,7 +691,7 @@ gtk_password_entry_set_extra_menu (GtkPasswordEntry *entry,
 }
 
 /**
- * gtk_password_entry_get_extra_menu:
+ * gtk_password_entry_get_extra_menu: (attributes org.gtk.Method.get_property=extra-menu)
  * @entry: a `GtkPasswordEntry`
  *
  * Gets the menu model set with gtk_password_entry_set_extra_menu().